package cn.iocoder.yudao.module.digital.service.cardchannel.model.bamboo;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum BambooCardStatusEnum {
    Paused("Paused", "已暂停"),
    Sold("Sold", "已售出"),
    Failed("Failed", "失败"),
    Created("Created", "已创建"),
    Processing("Processing", "处理中");

    private final String value;
    private final String desc;

    public String getValue() {
        return value;
    }

    public static BambooCardStatusEnum fromValue(String value) {
        for (BambooCardStatusEnum type : values()) {
            if (type.value.equals(value)) {
                return type;
            }
        }
        throw new IllegalArgumentException("枚举类型 BambooCardStatusEnum 不支持的值：" + value);
    }

}
